/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package entitys;

import java.util.ArrayList;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.OneToMany;

/**
 *
 * @author usuarios
 */
@Entity
@DiscriminatorValue("Veterinarian")
public class Veterinarian extends Person{
    @Column(length = 15)
    private String focusOfPractice;
    @Column(length = 15)
    private String specialities;
    @Column(length = 15)
    private int salary;
    @Column(length = 15)
    private String graduatedAt;
    
    
    public Veterinarian(){
        super();
    }
    @OneToMany(mappedBy = "Veterinarian")
    private List<Appointment> appointment = new ArrayList<>();
    public String getfocusOfPractice(){
        return focusOfPractice;
    }
    public void setfocusOfPractice(String focusOfPractice){
        this.focusOfPractice = focusOfPractice;
    }
    public String getspecialities(){
        return specialities;
    }
    public void setspecialities(String specialities){
        this.specialities = specialities;
    }
    public int getsalary(){
        return salary;
    }
    public void setsalary(int salary){
        this.salary = salary;
    }
    public String getgraduatedAt(){
        return graduatedAt;
    }
    public void setgraduatedAt(String graduatedAt){
        this.graduatedAt = graduatedAt;
    }
    
    
    public List<Appointment> getappointment(){
        return appointment;
    }
    
    public void setappointment(List<Appointment> appointment){
        this.appointment = appointment;
    }
            
}
